import React, { Component } from 'react';
import { BrowserRouter as Router,NavLink } from 'react-router-dom';
import RouterView from './routes';

class App extends Component {
  constructor(props){
    /* 组件的构造函数中一定要加上super */
    super(props);
    this.state = {
      msg:"hello react"
    }
  }
  render() {
    return (
      <Router className="item">

         <RouterView></RouterView>
      </Router>
    );
  }
}
export default App;


